package club.justwill.single.persistence.support;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Created by luoyu on 15-12-24.
 */
@MappedSuperclass
public class ProjectIntroduceBase extends Jpo {


    @Column(name = "project_id")
    private long projectId;

    @Column(name = "type")
    private Integer type;

    @Column(name = "content")
    private String content;

    @Column(name = "c_type")
    private Integer c_type;

    @Column(name = "tum")
    private Integer tum;

    protected void copyBase(ProjectIntroduceBase other) {
        setProjectId(other.getProjectId());
        setType(other.getType());
        setContent(other.getContent());
        setC_type(other.getC_type());
        setTum(other.getTum());
    }


    public long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        if(projectId == null) {
            this.projectId = 0L;
        } else {
            this.projectId = projectId;
        }
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getC_type() {
        return c_type;
    }

    public void setC_type(Integer c_type) {
        this.c_type = c_type;
    }

    public Integer getTum() {
        return tum;
    }

    public void setTum(Integer tum) {
        this.tum = tum;
    }
}
